/**
 * 一些配置
 */
const baseUrl = import.meta.env.MODE === 'production' ? '/gateway' : ''
console.log(baseUrl)
export default {
  /**
   * geoserver矢量图层调用连接
   */
  geoserver: {
    getWfsJsonUrl: `${baseUrl}/gis/wfs/getWfsJsonData`,
    getWfsGmlUrl: `${baseUrl}/gis/wfs/getWfsGmlData`,
    getWfsJsonWithFilter: '/gis/wfs/getWfsJsonDataWithFilter', // 用that.$http.get不需要加baseUrl
    getWfsJsonWithMoreFilter: `${baseUrl}/gis/wfs/getWfsJsonWithMoreFilter`,
    wmsUrl: `${baseUrl}/gis/wms/getWmsIMG`,
    wmTsUrl: `${baseUrl}/gis/wmts/getWmtsIMG`
  },

  map: {
    webKey: '337d62ff67c603abe0f6fce62e4752a4',
    // webKey: '93724b915d1898d946ca7dc7b765dda5',
    wmtsUrl_1: 'http://t{0-7}.tianditu.gov.cn/vec_c/wmts?tk=', //矢量底图
    wmtsUrl_2: 'http://t{0-7}.tianditu.gov.cn/cva_c/wmts?tk=', //矢量注记
    wmtsUrl_3: 'http://t{0-7}.tianditu.gov.cn/img_c/wmts?tk=',
    aiMapUrl: 'http://10.130.0.226:50000/ctgmap/map/elec/gx_map/server/wmts?ak=',
    aiMapYxUrl: 'http://10.130.0.226:50000/ctgmap/map/hdsat/gx_map/server/wmts?ak=',
    // mapType:process.env.NODE_ENV === 'production' ?'aimap':'tianditu',
    mapType: 'tianditu'
  },

  poi: {
    gdkey: '35da1b153bf145e95e389bb67af5cf24'
  }
}
